package com.yuyou.tas.util.tool;

import java.util.Date;
import java.util.Random;

public class NoUtil {
	

	public static String STUDENTNO="tas";
	
	
	public static String genTimeNo(String pre){
		String sss=DateUtil.format(new Date(), DateUtil.yyyyMMddHHmmssSSS);		
		int ram=new Random().nextInt(100);
		return pre+sss+ram;
	}
	
	public static String genSequenceNo(String pre){
		return pre+Sequence.getSequence().getNextId();
	}
	
	
	public static void main(String[] args) {
		System.out.println(genTimeNo(NoUtil.STUDENTNO));
		System.out.println(genSequenceNo(NoUtil.STUDENTNO));
	}
	
}
